/*
 * MessageTimeHolder.java
 * business
 *
 * Created by ChenTao on 2017/6/28.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/**
 * MessageTimeHolder
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017-06-28 18:12
 */
public class MessageTimeHolder extends ViewHolder {

    private TextView tvTime;

    @Override
    protected void initView(View rootView) {
        tvTime = (TextView) rootView.findViewById(R.id.tv_time);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_message_time;
    }

    public void refreshUI(String time) {
        tvTime.setText(time);
    }
}
